<?php
/**
* SocialEngine
*
* @category   Application_Extensions
* @package    Flashgame
* @version    $Id: Global.php 6072 2010 YouNet $
* @author     To Anh
*/


class Flashgame_Form_Admin_Global extends Engine_Form
{
    public function init()
    {
        $this
        ->setTitle('Global Settings')
        ->setDescription('These settings affect all members in your community.');


        $this->addElement('Text', 'flashgame_page', array(
        'label' => 'Games Per Page',
        'description' => 'How many games will be shown per page? (Enter a number between 1 and 999)',
        'value' => Engine_Api::_()->getApi('settings', 'core')->getSetting('flashgame.page', 10),
        ));

        // Add submit button
        $this->addElement('Button', 'submit', array(
        'label' => 'Save Changes',
        'type' => 'submit',
        'ignore' => true
        ));
    }
}